package cn.tedu.boot.ers.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

@Data
public class UserUpdateMoneyDTO implements Serializable {
    @NotNull(message = "用户名不能为空")
    @ApiModelProperty(value = "用户名",name = "username",example = "tf001")
    private String username;
    @NotNull(message = "余额不能为空")
    @ApiModelProperty(value = "余额",name = "money",example = "188.5")
    private BigDecimal money;
    @ApiModelProperty(value = "会员等级",name = "level",example = "1")
    private String level;
}
